<template>
	<view class="wrapper">
		<view class="cont animated slideInUp flex_row">
			<view @click="bindAct(item.text)" v-for="(item,index) in list" :key="index" class="btnActive box flex_col">
				<image :src="item.img"></image>
				<text>{{item.text}}</text>
			</view>
			<!-- <view class="trag"></view> -->
		</view>
	</view>
</template>

<script>
	export default {
		name:'publicAct',
		props:{
			
		},
		data(){
			return{
				list:[
					{'img':'../../static/image/001.png','text':'约吃饭'},
					{'img':'../../static/image/002.png','text':'约电影'},
					{'img':'../../static/image/003.png','text':'约运动'},
					{'img':'../../static/image/004.png','text':'约唱歌'},
					{'img':'../../static/image/005.png','text':'约游戏'},
					{'img':'../../static/image/006.png','text':'约旅行'},
					{'img':'../../static/image/007.png','text':'约购物'},
					{'img':'../../static/image/008.png','text':'约其他'},
					{'img':'../../static/image/009.png','text':'不约了'},
				]
			}
		},
		methods:{
			bindAct:function(str){
				this.$emit('bindAct',str);
			}
		}
	}
</script>
<style scoped>
	@import url('../static/animate.css');
	.cont{
		width: 90%;
		box-sizing: border-box;
		background: #fff;
		border-radius: 20px;
		padding: 30px 5%;
		flex-wrap: wrap;
		justify-content: space-around;
		position: fixed;
		top: 470px;
		left: 5%;
	}
	.trag{
		width: 0;
		height: 0;
		border-style: solid;
		border-color: #fff transparent transparent transparent;
		border-width: 75px 28px;
		position: absolute;
		bottom: -120px;
		left: 52%;
		transform: rotate(22deg);
	}
	.box{
		width: 31%;
		justify-content: center;
		font-size: 30px;
		padding: 30px 0;
	}
	.box image{
		width: 80px;
		height: 80px;
		padding-bottom: 8px;
	}
</style>
